﻿using DbContext;
using SmartPlant.Model;
using SmartPlant.Model.Biz;
using SmartPlant.WinCore;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace SmartPlant.Services.Interfaces
{
    public interface IDrawingService
    {
        /// <summary>
        /// 类SQL语句查 
        /// </summary>
        /// <param name="ProjId"></param>
        /// <param name="propertyInfos"></param>
        /// <returns></returns>
        public Task<List<Drawing>> GetPIDAsync(decimal ProjId, decimal plantId);
        public Task<bool?> UpdateDwgs(decimal ProjId, List<Drawing> dwgs);
        public Task<Drawing> GetById(decimal DwgId);
        public  Task<bool> UpdateDrawingAsync(decimal proId, Drawing drawing);
        public Task<bool> CreatePD(string dwgName, decimal Id, ObjectDefId type, decimal caseId);

        public Task<bool> CreateSpec(string dwgName,int formId, decimal Id, ObjectDefId type, decimal caseId);
    }
}